package CRUD;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Demo {
   public static void main(String[] args) {

   Demo d = new Demo();
   d.add();
   }
   
   public void add(){
	   int i=0;
	   add2(i);
	   System.out.println(i);
   }
   public int add2(int i){
	   i=i+4;
	  return ++i;
   }
   
   public static void getRev(String coment) {
		String reg = "^[0-9]+(\\.[0-9]{1,2})?$";// 这个地方从数据库中生成 String moto="\\w*\\+\\w*"
		Pattern pattern = Pattern.compile(reg);
		Matcher m = pattern.matcher(coment);
		if (m.find()) {
			String value = m.group();
			System.out.println("temp="+value);
		}
	}
   
}
